/*
 * @Title Person.java
 * @Description
 * @Copyright Copyright(c) 2018
 * @Company com.lizhen
 * @author lizhen
 * @version 0.0.1
 */
package com.lizhen.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author lizhen
 */
@Entity
@Table(name = "person")
public class Person {

    @Id
    @Column(name = "name")
    private String pname;
    @Column(name = "age")
    private int page;

    /**
     * @author lizhen
     */
    public Person() {
        super();
    }

    public Person(String pname, int page) {
        super();
        this.pname = pname;
        this.page = page;
    }

    /**
     * @return the pname
     */
    public String getPname() {
        return pname;
    }

    /**
     * @param pname the pname to set
     */
    public void setPname(String pname) {
        this.pname = pname;
    }

    /**
     * @return the page
     */
    public int getPage() {
        return page;
    }

    /**
     * @param page the page to set
     */
    public void setPage(int page) {
        this.page = page;
    }

}
